<?php


class Data{

		public static function formataDateToString($data){
			return date('d/m/Y', strtotime($data));			
		}
		
		public static function formataStringToDate($data){
			$date = explode("/", $data);
			$formatoDate = $date[2];
			$formatoDate .= "-";
			$formatoDate .= $date[1];
			$formatoDate .= "-";
			$formatoDate .= $date[0];
			return $formatoDate;	
		}



}

?>